Release 10.1A: OpenEdge Development:
Java Open Clients
Constructors
The
ProDataRelationMetaDataclass has two constructors for:Creating a data-relation from parent and child ProDataObjectMetaData
The following constructor creates a
ProDataRelationMetaDataobject with the specifiedProDataObjectMetaDataobjects:
nameSpecifies the name of the
ProDataRelationMetaDataobject.parentSpecifies the parent
ProDataObjecttype.childSpecifies the child
ProDataObjecttype.After creating a
ProDataRelationMetaDataobject using this constructor, use the object’ssetColumns()methods to set the key fields for the parent and child table relationships. For more information, see the "setColumns( )" section.Creating a data-relation from selected parent and child key fields
The following constructor creates a
ProDataRelationMetaDataobject from column properties selected as key fields in specified parent and child tables (ProDataObjectcollections):
nameSpecifies the name of the
ProDataRelationMetaDataobject.parentIxSpecifies a 0-based index to a parent ProDataObject collection that corresponds to an index into the array of table names returned by the ProDataGraphMetaData getTableNames( ) method.
childIxSpecifies a 0-based index to a child ProDataObject collection that corresponds to an index into the array of table names returned by the ProDataGraphMetaData getTableNames( ) method.
numPairsSpecifies the number of column property pairs (key field pairs) that represent this relationship.
pairsListSpecifies a
Stringcontaining a comma-separated list of column property names. The list consists ofnumPairscolumn pairs, where the parent's column property name is followed by its matching child column property name. For example:
- If
numPairs= 1,pairsListmight contain:"pCustName,cOrderCustName"as one pair of parent and child property names.- If
numPairs= 2,pairsListmight contain:"pCustName,cOrderCustName,pCustBranch,cOrderBranch"as two pair of parent and child property names.The data types of the named parent and child column property pairs must be comparable.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |